#ifndef PARSER_H
#define PARSER_H
#include "array.h"
#include "sparse.h"
#include <fstream> 
using std::ifstream;

class parser{
    ifstream input;
    unsigned int longest;
    int parseExample(int& label, Array<int>& ai, Array<real>& av);
public:
    parser(const char* file);
    void parse(Array<vector*>& examples);
    int getdim();
    ~parser();
};

#endif
